package dns;

import java.net.InetAddress;
import java.net.UnknownHostException;

public class DnsSolve {
	public static String hostNameToIp(String hostName) throws UnknownHostException{
		InetAddress inetAddress = null;
		inetAddress = InetAddress.getByName(hostName);
		return inetAddress.getHostAddress();
	}
	
}
